<div id="{{ fieldset.name|slugify }}" >
	<h3 id="line" class="{% for line in fieldset %} {% if line.errors %} {% if forloop.first %} errornote-custom {% endif %} {% endif%} {% endfor %}"> &nbsp; </h3>
<fieldset class="module aligned {{ fieldset.classes }} {% for line in fieldset %} {% if line.errors %}{% if forloop.first %}errornote-custom{% endif %}{% endif%} {% endfor %}">
    {% if fieldset.namee %}<h2>{{ fieldset.name }}</h2>{% endif %}
    {% if fieldset.description %}
        <div class="description">{{ fieldset.description|safe }}</div>
    {% endif %}
    {% for line in fieldset %}
        <div class="form-row{% if line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}">
            {{ line.errors }}
            {% for field in line %}
                <div{% if not line.fields|length_is:"1" %} class="field-box"{% endif %}>
                    {% if field.field.name == "images" or field.field.name == "photo" %}
                        <img width=100 heigth=100 src="{{ MEDIA_URL}}{{ field.field.value }}" />
                    {% endif %}

                    {% if field.is_checkbox %}
                        {{ field.field }}{{ field.label_tag }}
                    {% else %}
                        {{ field.label_tag }}
                        {% if field.is_readonly %}
                            <p>{{ field.contents }}</p>
                        {% else %}
                            {{ field.field }}
                        {% endif %}
                    {% endif %}
                    {% if field.field.field.help_text %}
                        <p class="help">{{ field.field.field.help_text|safe }}</p>
                    {% endif %}
                </div>
            {% endfor %}
        </div>
    {% endfor %}
</fieldset>
</div>
